Skip to content

Conversation

@sebromero
Copy link
Contributor

@sebromero sebromero commented Dec 10, 2025

This PR allows to specify the LED matrix I2C address via constructor. That way multiple LED matrices can be daisy chained. Remember to change the address of the additional matrices for this to work.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request adds the ability to specify a custom I2C address for the LED Matrix module, addressing scenarios where multiple devices might share the I2C bus or where the default address conflicts with other hardware.

Key changes:

  • Introduces a DEFAULT_ADDRESS constant (0x39) to replace the hardcoded address
  • Adds an _address member variable to store the configurable I2C address
  • Provides two constructor overloads allowing users to specify the address in different parameter orders while maintaining backward compatibility

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@facchinm
Copy link
Contributor

👋 can you rebase on top of main and reopen the PR?

@sebromero sebromero changed the base branch from led_matrix to main December 11, 2025 11:00
@sebromero
Copy link
Contributor Author

@facchinm Done. Didn't realize that we have the LED matrix on main. Maybe we can remove the led_matrix branch then?

@facchinm
Copy link
Contributor

Yup, removing it right now 🙂

@facchinm facchinm merged commit 1f5f333 into main Dec 11, 2025
2 checks passed
@facchinm facchinm deleted the led_matrix_multi branch December 11, 2025 11:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants